package com.xique.blelock.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/12/12.
 */

public class UserNetInfo implements Serializable {
//    "nickname": "xiaoming123",
//            "phone": "13728630200",
//            "uid": "390ade59a4fc4fa3bef040d9107a1181"

    private String nickname;
    private String phone;
    private String uid;

    private boolean isSet;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public boolean isSet() {
        return isSet;
    }

    public void setSet(boolean set) {
        isSet = set;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserNetInfo that = (UserNetInfo) o;


        return uid.equals(that.uid);
    }

    @Override
    public int hashCode() {
        int result = nickname != null ? nickname.hashCode() : 0;
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + uid.hashCode();
        result = 31 * result + (isSet ? 1 : 0);
        return result;
    }
}
